More Runic formatting#1675
Merged
Merged
Conversation
Contributor
|
Your PR requires formatting changes to meet the project's style guidelines. Click here to view the suggested changes.diff --git a/NDTensors/src/combiner/combiner.jl b/NDTensors/src/combiner/combiner.jl
index 080c59892..86c5777ef 100644
--- a/NDTensors/src/combiner/combiner.jl
+++ b/NDTensors/src/combiner/combiner.jl
@@ -132,30 +132,30 @@ function invalid_combiner_contraction_error(
)
return error(
"""
- Trying to contract a tensor with indices:
+ Trying to contract a tensor with indices:
- $(inds(tensor))
+ $(inds(tensor))
- and labels:
+ and labels:
- $(tensor_labels)
+ $(tensor_labels)
- with a combiner tensor with indices:
+ with a combiner tensor with indices:
- $(inds(combiner_tensor))
+ $(inds(combiner_tensor))
- and labels:
+ and labels:
- $(combiner_tensor_labels).
+ $(combiner_tensor_labels).
- This is not a valid combiner contraction.
+ This is not a valid combiner contraction.
- If you are combining, the combined index of the combiner should be the only one uncontracted.
+ If you are combining, the combined index of the combiner should be the only one uncontracted.
- If you are uncombining, the combined index of the combiner should be the only one contracted.
+ If you are uncombining, the combined index of the combiner should be the only one contracted.
- By convention, the combined index should be the index in position $(combinedind_position(combiner_tensor)) of the combiner tensor.
- """,
+ By convention, the combined index should be the index in position $(combinedind_position(combiner_tensor)) of the combiner tensor.
+ """,
)
end
diff --git a/src/indexset.jl b/src/indexset.jl
index 2db01c4af..ee999594d 100644
--- a/src/indexset.jl
+++ b/src/indexset.jl
@@ -574,28 +574,28 @@ hassameflux(i1::Index, i2::Index) = (dim(i1) == dim(i2))
function replaceinds_space_error(is, inds1, inds2, i1, i2)
return error(
"""
- Attempting to replace the Indices
+ Attempting to replace the Indices
- $(inds1)
+ $(inds1)
- with
+ with
- $(inds2)
+ $(inds2)
- in the Index collection
+ in the Index collection
- $(is).
+ $(is).
- However, the Index
+ However, the Index
- $(i1)
+ $(i1)
- has a different space from the Index
+ has a different space from the Index
- $(i2).
+ $(i2).
- They must have the same spaces to be replaced.
- """
+ They must have the same spaces to be replaced.
+ """
)
end
diff --git a/src/packagecompile/compile.jl b/src/packagecompile/compile.jl
index 19d735456..3f96e65c1 100644
--- a/src/packagecompile/compile.jl
+++ b/src/packagecompile/compile.jl
@@ -7,33 +7,33 @@ default_compile_path() = joinpath(default_compile_dir(), default_compile_filenam
function compile_note(; dir = default_compile_dir(), filename = default_compile_filename())
path = joinpath(dir, filename)
return """
- You will be able to start Julia with a compiled version of ITensors using:
+ You will be able to start Julia with a compiled version of ITensors using:
- ```
- ~ julia --sysimage $path
- ```
+ ```
+ ~ julia --sysimage $path
+ ```
- and you should see that the startup times and JIT compilation times are substantially improved when you are using ITensors.
+ and you should see that the startup times and JIT compilation times are substantially improved when you are using ITensors.
- In unix, you can create an alias with the Bash command:
+ In unix, you can create an alias with the Bash command:
- ```
- ~ alias julia_itensors="julia --sysimage $path -e 'using ITensors' -i"
- ```
+ ```
+ ~ alias julia_itensors="julia --sysimage $path -e 'using ITensors' -i"
+ ```
- which you can put in your `~/.bashrc`, `~/.zshrc`, etc. This also executes
- `using ITensors` so that ITensors is loaded and ready to use, you can leave off `
- -e 'using ITensors' -i` if you don't want that. Then you can start Julia with a
- version of ITensors installed with the command:
+ which you can put in your `~/.bashrc`, `~/.zshrc`, etc. This also executes
+ `using ITensors` so that ITensors is loaded and ready to use, you can leave off `
+ -e 'using ITensors' -i` if you don't want that. Then you can start Julia with a
+ version of ITensors installed with the command:
- ```
- ~ julia_itensors
- ```
+ ```
+ ~ julia_itensors
+ ```
- Note that if you update ITensors to a new version, for example with `using
- Pkg; Pkg.update("ITensors")`, you will need to run the `ITensors.compile()`
- command again to recompile the new version of ITensors.
- """
+ Note that if you update ITensors to a new version, for example with `using
+ Pkg; Pkg.update("ITensors")`, you will need to run the `ITensors.compile()`
+ command again to recompile the new version of ITensors.
+ """
end
function compile(; backend = Algorithm"PackageCompiler"(), kwargs...) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Looks like I missed a bunch of files in #1673...